package com.example.custom.autoconfigure.service;


import com.example.custom.autoconfigure.properties.CustomServiceProperties;

public class CustomService {
    private CustomServiceProperties properties;

    public CustomService(CustomServiceProperties properties) {
        this.properties = properties;
    }

    public String doSomething(String input) {
        if (!properties.isEnable()) {
            return input;
        }
        return properties.getPrefix() + " " + input + " " + properties.getSuffix();
    }
}
